package cn.enjoy.anji.controller;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * @author K
 * @date 2021/8/30 上午9:30
 */
@Component
public class ScheduleTask {

    @Scheduled(cron = "* 0/1 * * * ?")
    public void print() {
        System.out.println(LocalDateTime.now());
    }
}
